@import './style.theme.less';
@prefixCls: source-manage;
@prefix-modal-form: source-modal-form;
@prefix-detail-drawer: source-drawer;
@prefix-cls-oa: purchase-clarification-update;

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection() {
  display: flex;
  flex-direction: column;
}

.@{prefixCls} {
  &- {
    display: flex;
    width: 100%;
    height: 100%;

    // .ant-tabs-left {
    //   .ant-tabs-content-holder {
    //     display: none;
    //   }
    // }
  }

  &-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .ant-spin-container {
      display: flex;

      .source-tabs {
        .ant-tabs-nav-wrap {
          border-right: 1px solid #f0f0f0;
        }

        .ant-tabs-content-holder {
          display: none;
        }
      }
    }

    &-steps {
      width: 100%;
      background: #fff;
      padding: 20px 30px;
      margin-bottom: 8px;
    }

    &-header {
      display: flex;
      justify-content: end;
      align-items: center;
      padding: 8px 12px;
      border-bottom: 1px dashed #cdcdcd;
      background: #fff;
    }

    &-scroll {
      width: 100%;
      height: 100%;
      overflow: hidden;
      background: #fff;

      .container-inner {
        display: none;
      }

      .container-inner-active {
        display: block;
      }

      .source-info {
        width: 100%;
        height: 100%;
        display: flex;

        .source-info-desc {
          width: 100%;
          padding: 8px;
        }

        .source-info-tabs {
          border-right: 1px dashed #f0f0f0;
          background: #fafafa;

          .ant-tabs-tab-active {
            background: #fff;
          }
        }
      }

      .source-change {
        width: 100%;
        height: 100%;
        display: flex;

        .source-change-tabs {
          border-right: 1px dashed #f0f0f0;
          background: #fafafa;

          .ant-tabs-tab {
            border: 2px solid rgba(0, 0, 0, 0);
          }

          .ant-tabs-tab-active {
            background: #fff;
            border-bottom: 1px solid #40a9ff;
          }

          .ant-tabs-ink-bar-animated {
            width: 4px !important;
          }
        }

        .source-change-desc {
          width: 100%;
          padding: 8px;
        }
      }

      .source-invite {
        width: 100%;
        height: 100%;

        .source-invite-desc {
          width: 100%;
          padding: 8px;

          .source-experts-row {
            position: relative;
            top: -1px;

            // .source-experts-row-bid {
            //   position: relative;
            //   top: -2px;
            // }
          }

          .source-experts-item-title {
            text-align: center;
            padding: 8px 16px;
            width: 100%;
            border: 1px solid #f0f0f0;
            border-bottom: none;
            font-weight: bold;
          }

          .list-table {
            height: 100%;
            width: 100%;
            position: relative;
            top: -1px;

            .ant-table {
              margin: 0 !important;
            }

            .ant-pagination {
              margin: 0;
            }
          }
        }
      }

      .source-calibrate {
        width: 100%;
        height: 100%;
        display: flex;

        .source-calibrate-tabs {
          border-right: 1px dashed #f0f0f0;
          background: #fafafa;

          .ant-tabs-tab-active {
            background: #fff;
          }
        }

        .source-calibrate-desc {
          width: 100%;
          padding: 8px;
        }
      }

      .source-clarify {
        width: 100%;
        height: 100%;
        display: flex;

        .source-clarify-tabs {
          border-right: 1px dashed #f0f0f0;
          background: #fafafa;

          .ant-tabs-tab {
            border: 2px solid rgba(0, 0, 0, 0);
          }

          .ant-tabs-tab-active {
            background: #fff;
            border-bottom: 1px solid #40a9ff;
          }

          .ant-tabs-ink-bar-animated {
            width: 4px !important;
          }

          .ant-tabs-nav-operations {
            display: none;
          }
        }

        .source-clarify-desc {
          width: 100%;
          padding: 8px;
        }

        .list-table {
          position: relative;
          top: -1px;

          .ant-table {
            margin: 0 !important;

            input {
              border: none;
              outline: none;
              padding: 0;
              height: 32px;
              line-height: 32px;
            }

            .ant-form-item {
              margin: 0 !important;
            }
          }
        }
      }

      .source-experts {
        width: 100%;
        height: 100%;
        display: flex;

        .source-experts-tabs {
          border-right: 1px dashed #f0f0f0;
          background: #fafafa;

          .ant-tabs-tab {
            border: 2px solid rgba(0, 0, 0, 0);
          }

          .ant-tabs-tab-active {
            background: #fff;
            border-bottom: 1px solid #40a9ff;
          }

          .ant-tabs-ink-bar-animated {
            width: 4px !important;
          }

          .ant-tabs-nav-operations {
            display: none;
          }
        }

        .source-experts-desc {
          width: 100%;
          padding: 8px;

          .source-experts-row {
            position: relative;
            top: -1px;

            .source-experts-row-bid {
              position: relative;
              top: -2px;
            }
          }
        }

        .source-experts-item-title {
          text-align: center;
          padding: 8px 16px;
          width: 100%;
          border: 1px solid #f0f0f0;
          border-bottom: none;
          font-weight: bold;
        }

        .list-table {
          position: relative;
          width: 100%;
          top: -1px;

          .ant-table {
            margin: 0 !important;
          }
        }
      }

      .source-supplier {
        width: 100%;
        height: 100%;
        display: flex;

        .source-supplier-tabs {
          border-right: 1px dashed #f0f0f0;
          background: #fafafa;

          .ant-tabs-tab {
            border: 2px solid rgba(0, 0, 0, 0);
          }

          .ant-tabs-tab-active {
            background: #fff;
            border-bottom: 1px solid #40a9ff;
          }

          .ant-tabs-ink-bar-animated {
            width: 4px !important;
          }

          .ant-tabs-nav-operations {
            display: none;
          }
        }

        .source-supplier-desc {
          width: 100%;
          padding: 8px;

          .source-supplier-row {
            position: relative;
            top: -1px;

            .supplier-selectFull {
              cursor: pointer;
            }
          }
        }

        .source-supplier-item-title {
          text-align: center;
          padding: 8px 16px;
          width: 100%;
          border: 1px solid #f0f0f0;
          border-bottom: none;
          font-weight: bold;
        }

        .list-table {
          position: relative;
          top: -1px;

          .ant-table {
            margin: 0 !important;

            input {
              border: none;
              outline: none;
              padding: 7px;
              height: 32px;
              line-height: 32px;
            }

            .ant-input[disabled],
            .ant-input-group-addon {
              background-color: transparent;
            }

            .ant-input-group-addon {
              border: none;
            }

            .ant-form-item,
            .ant-form-item-row {
              margin: 0 !important;
            }
          }
        }
      }
    }

    &-footer {
      display: flex;
      justify-content: center;
      align-items: center;
      // padding: 10px 0px;
      border-top: 1px dashed #cdcdcd;
      background: #fff;
      padding: 10px 0;
    }
  }

  &-UpdateModalTable {
    .ant-form {
      .ant-form-item {
        margin: 0 !important;
      }
    }
  }

  &-pack {
    width: 94%;
    margin: 8px auto;

    &-container {
      width: 100%;
      min-height: 95px;
      border: 1px solid #f0f0f0;
      display: flex;
      flex-wrap: wrap;

      .ant-ribbon-wrapper {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
      }

      &-pack-name {
        width: 179px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-right: 1px solid #f0f0f0;
        background: #fafafa;
      }

      &-inner {
        width: calc(100% - 179px);

        &-item {
          display: flex;
          border-bottom: 1px solid #f0f0f0;

          span {
            flex: 1;
            padding: 12px;
            border-right: 1px solid #f0f0f0;
            display: inline-block;
            min-width: 120px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
          }

          span:last-child {
            border-right: none;
          }
        }

        &-item:first-child {
          span {
            background: #fafafa;
          }
        }

        &-item:last-child {
          border-bottom: none;
        }
      }

      &-footer {
        width: 100%;
        background: #fafafa;
        border-top: 1px solid #f0f0f0;
        padding: 8px 8px;
        display: flex;
        justify-content: space-between;
      }
    }
  }
}

.@{prefix-modal-form} {
  width: 100%;
  height: 100%;

  &-download {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 70%;
    margin: auto;

    .ant-upload.ant-upload-drag {
      height: 200px;
    }
  }

  &-dragger {
    flex: 1;
  }

  &-upload-text {
    &-click {
      color: #1890ff;
      font-style: normal;
    }
  }

  &-tip-title {
    font-size: 14px;
    margin-top: 10px;
  }

  &-download-tem {
    color: #1890ff;
    margin-left: 10px;
    text-decoration: underline;
  }

  &-step {
    padding: 20px 0;
  }

  &-content {
    flex: auto;
    overflow-x: hidden;
    overflow-y: auto;

    &-body {
      height: 100%;
      padding-top: 1rem;
    }
  }

  &-card {
    width: 100%;
    border: 1px solid #e9e9e9;
    display: flex;
    margin-bottom: 1rem;
    min-height: 33%;

    &-icon {
      width: 15%;
      border-right: 1px solid #e9e9e9;
      background: #f5f5f5;
      padding: 0.75rem;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 3rem;
      color: #cccccc;
    }

    &-info {
      flex: auto;
      padding: 0.75rem;

      &-title {
        margin-bottom: 0.75rem;
        font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
        font-weight: 700;
        color: #666666;
      }

      &-describe {
        margin-bottom: 0.75rem;
        color: #999999;
        font-size: 0.75rem;
      }
    }

    &-error {
      flex: auto;
      padding: 0.75rem;
      display: flex;
      flex-direction: column;

      &-title {
        margin: 0.75rem 0rem;
        font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
        font-weight: 700;
        color: #666666;
        flex: auto;
      }
    }
  }

  &-sucess {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    &-wraper {
    }

    &-icon {
      font-size: 7rem;
      color: #52c41a;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    &-title {
      font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
      font-weight: 700;
      color: #666666;
      font-size: 1rem;
      text-align: center;
      margin-top: 0.75rem;
    }

    &-info {
      font-family: Microsoft YaHei Bold, Microsoft YaHei Regular, Microsoft YaHei;
      margin-top: 0.75rem;
      color: #999999;
    }
  }

  &-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.@{prefix-detail-drawer} {
  &-detailHandleCheck {
    .ant-drawer-content-wrapper {
      .ant-drawer-content {
        .ant-drawer-wrapper-body {
          .ant-drawer-header {
            .ant-drawer-header-title {
              display: flex;
              flex-direction: row-reverse;

              .ant-drawer-title {
                font-weight: normal;
                margin-left: 10px;
              }

              .ant-drawer-close {
                margin-right: 0;
              }
            }
          }
        }
      }
    }
  }
}

.@{prefix-cls-oa} {
  //OA页面样式
  &-infoViewOA {
    height: 100%;
    width: 100%;
    .displayDirection();
    .overflow();

    &-centerBodyTitleBox {
      text-align: center;
      font-weight: 700;
      font-size: 24px;
    }

    &-titleBox {
      display: flex;
      justify-content: space-between;
      background-color: #fff;
      border-radius: 5px;
      align-items: center;
      padding: 0px 10px;

      &-textValue {
        font-size: 22px;
        padding: 10px 0px;
      }
    }

    &-centerBox {
      flex: auto;
      background: #fff;
      margin: 6px 0px;
      border-radius: 5px;
      padding: 10px 0px;
      overflow: hidden;
    }

    &-bottomBtnBox {
      background-color: #fff;
      border-radius: 5px;

      &-spaceItemBox {
        display: flex;
        justify-content: center;
        padding: 0px 10px;
      }

      &-spaceItemBox > .ant-space > .ant-space-item {
        margin: 10px 0px;
      }
    }
  }

  // 流程办理
  &-flowListView {
    width: 100%;
    height: 100%;
    padding: 0px 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    &-workflowTbodyRootDiv {
      width: 100%;
      flex: auto;
      height: 30%;
      overflow: hidden;

      .ant-empty {
        margin: 0px;
        padding: 50px 0px;
        border-left: 1px solid #d7d7d7;
        border-right: 1px solid #d7d7d7;
        border-bottom: 1px solid #d7d7d7;
      }

      table {
        border-left: 1px solid #d7d7d7;
        border-right: 1px solid #d7d7d7;
        border-bottom: 1px solid #d7d7d7;
      }

      td {
        padding: 10px;
      }

      tr:not(:first-child) {
        border-top: 1px solid #d7d7d7;
      }
    }
  }

  &-workflowNodesTableTitle {
    border-top: 1px solid #d7d7d7;
    overflow: hidden;

    &-tableTheadBox {
      text-align: left;
      border: 1px solid #d7d7d7;

      th {
        padding: 10px;
        background-color: #f7f7f7;
      }
    }
  }
}

.source-update-selectSupplier {
  height: 100%;
  overflow: hidden;

  .ant-spin-nested-loading {
    height: 100%;
    overflow: hidden;

    .ant-spin-container {
      height: 100%;
      overflow: hidden;
    }
  }

  #dynamic_form_complex {
    .ant-form-item {
      margin-bottom: 0px;
      height: 100%;

      .ant-form-item-label {
        width: 220px !important;
        text-align: left !important;
        background-color: #fafafa;
        border-left: 0.5px solid #eee;
        border-right: 0.5px solid #eee;
        display: flex;
        justify-content: left;
        align-items: center;
        padding: 0px 5px;
      }

      .ant-form-item-explain-error {
        padding: 4px 11px;
      }

      .ant-space-align-baseline {
        gap: 0 !important;
        align-items: normal !important;
      }
    }

    .ant-form-item-has-error .ant-input:focus {
      box-shadow: none !important;
    }

    .ant-row {
      height: 100%;
    }
  }

  .source-update-selectSupplier-boxDiv {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    .ant-row {
      .ant-form-item {
        margin-bottom: 12px;
      }
    }

    .list-table {
      height: 100%;
      overflow: hidden;
      flex: auto;
    }
  }

  .source-update-selectSupplier-contactPerson {
    border-right: 1px solid rgb(240, 240, 240);
    border-bottom: 1px solid rgb(240, 240, 240);

    .ant-form-item-row {
      border-right: 1px #fcfcfc solid;
    }

    .ant-form-item-label {
      padding: 6px !important;
    }

    .ant-form-item-control {
      .ant-form-item-control-input {
        height: 100%;
      }
    }
  }
}

.source-invite-selectPackModal {
  .ant-modal-content {
    .ant-modal-body {
      height: 500px;
      padding: 10px;

      .ant-spin-nested-loading {
        height: 100%;
        overflow: hidden;

        .ant-spin-container {
          height: 100%;
          overflow: hidden;
          display: flex;
          flex-direction: column;

          .ant-form-item {
            margin-bottom: 10px;
          }
        }
      }
    }
  }

  .list-table {
    position: relative;
    top: -1px;

    .ant-table {
      margin: 0 !important;
    }
  }
}

.source-selectExpertModal {
  .ant-form {
    .ant-form-item {
      margin-bottom: 0px;
    }
  }
}

.selectDeputy-modalDiv {
  .ant-spin-nested-loading {
    height: 100%;
    overflow: hidden;

    .ant-spin-container {
      height: 100%;
      overflow: hidden;
    }
  }
}

.list-table-extract-drawer {
  height: 100%;
  overflow: hidden;

  .ant-table-wrapper {
    overflow: hidden;

    .ant-spin-nested-loading {
      overflow: hidden;

      .ant-spin-container {
        overflow: hidden;
      }
    }
  }

  .ant-form-item {
    margin: 0;
  }

  .ant-pagination {
    display: flex;

    .ant-pagination-total-text {
      flex: auto;
    }
  }

  .ant-spin-container {
    .ant-table {
      margin: 0 !important;
    }

    &-selectPackageTable {
      flex: auto;
    }

    .ant-table-content {
      height: 100%;
    }

    .ant-pagination {
      margin: 0px 0px;
    }
  }

  .ant-table-row {
    .ant-table-cell {
      height: 50px;
      /* 调整为您需要的最小高度值 */
    }
  }
}

.ExtractModalTable {
  flex: auto;
  height: 100%;
  overflow: hidden;

  .ant-table {
    margin: 0 !important;

    .double-row {
      td {
        background: #fff;
      }
    }

    .default-row {
      td {
        background: #fafafa;
      }
    }
  }

  .ant-pagination {
    margin: 0 !important;
    padding: 12px 0 !important;
  }
}

.expertsList-modalSelect {
  .ant-modal-body {
    overflow: hidden;

    .ant-spin-nested-loading {
      height: 100%;
      overflow: hidden;

      .ant-spin-container {
        height: 100%;
        overflow: hidden;

        .source-selectExpertModal {
          height: 100%;
          overflow: hidden;
          display: flex;
          flex-direction: column;
        }
      }
    }
  }
}

.ant-tabs.ant-tabs-left {
  display: block;
}

.documentatio-update .ant-tabs-content-holder {
  display: block;
}

.sourcePackInfoDrawer {
  .list-table {
    .ant-table {
      margin: 0 !important;
    }
  }

  .apply-update-title-divClassName {
    text-align: center;
    padding: 8px 16px;
    width: 100%;
    border: 1px solid #f0f0f0;
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
  }
}

.source-bankName-formitemCls {
  .ant-select-selection-search {
    left: 0px !important;
    .ant-select-selection-search-input {
      height: 100% !important;
    }
  }
}
